package com.qaml.mes.device.vo.eqp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "eqp_info对象", description = "设备信息")
public class EqpInfoVO implements Serializable {

    private static final long serialVersionUID = -3953038236732233566L;

    @ApiModelProperty(value = "设备信息id")
    private String id;

    /**
     * 设备名称
     */
    @ApiModelProperty(value = "设备名称")
    private String eqpName;

    /**
     * 规格型号
     */
    @ApiModelProperty(value = "规格型号")
    private String specModel;

    /**
     * 设备类型
     */
    @ApiModelProperty(value = "设备类型")
    private String eqpType;

    /**
     * 设备编号
     */
    @ApiModelProperty(value = "设备编号")
    private String eqpCode;

    /**
     * 生产厂家
     */
    @ApiModelProperty(value = "生产厂家")
    private String eqpManufacturer;

    /**
     * 设备用途
     */
    @ApiModelProperty(value = "设备用途")
    private String eqpPurpose;

    /**
     * 生产日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "生产日期")
    private Date produceDate;

    /**
     * 进厂日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "进厂日期")
    private Date entryDate;

    /**
     * 管理部门id
     */
    @ApiModelProperty(value = "管理部门id")
    private String manageOrgId;

    /**
     * 管理部门名称
     */
    @ApiModelProperty(value = "管理部门名称")
    private String manageOrgName;

    /**
     * 启用状态  1 启动 0 禁用
     */
    @ApiModelProperty(value = "启用状态")
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 是否被删除
     */
    @ApiModelProperty(value = "是否被删除")
    private Integer isDeleted;

    /**
     * 附属物品清单
     */
    @ApiModelProperty(value = "附属物品清单")
    private List<EqpAuxiliaryStuffVO> eqpAuxiliaryStuffVOList;

    /**
     * 设备附件
     */
    @ApiModelProperty(value = "设备附件")
    private List<EqpAttachmentVO> eqpAttachmentFileList;

    /**
     * 设备图片
     */
    @ApiModelProperty(value = "设备图片")
    private List<EqpAttachmentVO> eqpAttachmentImageList;

    /**
     * 二维码
     */
    @ApiModelProperty(value = "二维码")
    private String twoDimensionalCode;


    @ApiModelProperty(value = "工艺类型")
    private String craftTypeCode;

    @ApiModelProperty(value = "工艺类型描述")
    private String craftType;
}